﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Text;
using SRP_LibBusinessEntity;
using System.Data;

namespace SRP_LibDataAccess
{
    public class CParametria
    {

        #region --Parametria ---
        public DataTable ListarParametria()
        {
            DataSet ds = new DataSet();
            WSParametria.wsParametria ws = new WSParametria.wsParametria();
            ws.Url = System.Configuration.ConfigurationManager.AppSettings["rutaWSParametria"].ToString();
            ds = ws.ListarParametria();
            return ds.Tables[0];
        }

        public int ActualizarParametro(string Num_Cadu, string Cant_Gria, string usuario)
        {
            WSParametria.wsParametria ws = new WSParametria.wsParametria();
            ws.Url = System.Configuration.ConfigurationManager.AppSettings["rutaWSParametria"].ToString();
            int result = ws.ActualizarParametro(Num_Cadu, Cant_Gria, usuario);
            return result;
        }
        #endregion

        #region - listar Vencimiento Certificado -
        public DataTable ListarVenCertif(string NOM_COMERCIAL)
        {
            DataSet ds = new DataSet();
            WSParametria.wsParametria ws = new WSParametria.wsParametria();
            ws.Url = System.Configuration.ConfigurationManager.AppSettings["rutaWSParametria"].ToString();
            ds = ws.ListarVenCertif(NOM_COMERCIAL);
            return ds.Tables[0];

        }
        #endregion


    }
}
